<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="" />
<meta name="author" content="ChongMing" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="full-screen" content="yes">
<meta name="screen-orientation" content="portrait">
<meta name="x5-fullscreen" content="true">
<meta name="360-fullscreen" content="true">
<title>订单状态</title>
</head>
<link href="../css/reset.min.css" rel="stylesheet" type="text/css" />
<link href="../css/examination/layout.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../css/ekang.css">
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.mobile-1.4.3.js"></script>
<script src="../js/main.js"></script>
<script src="../js/jquery.cookie.js"></script>
<script src="../js/ekang.js"></script>
<script>
    $(function(){

       Main.get(textUrl+'diagnosis/getOrderProcess/',{uid:$.cookie("local_userId"),order_id:getQueryString("orderId")},function(res){
            if(res.ret==0){
                var intimate_info_l = res.data.intimate_info.length;
                for(var i=0;i<intimate_info_l;i++){
                    var status_text = res.data.intimate_info[i].status_text;
                    var Time = res.data.intimate_info[i].time;
                    var sys_info = res.data.intimate_info[i].sys_info;
                    sub = Time.substr(0,16)
                    document.getElementById('status_l').innerHTML+='<dl><dt></dt><dd></dd></dl>';
                    $('#status_l').children().eq(intimate_info_l-1).children('dd').hide();
                    document.getElementById('status_r').innerHTML+='<div class="status1"><div class="con"><div class="top"><p class="pl">'+status_text+'</p><p class="pr">'+sub+'</p></div><p class="number">'+sys_info+'</p></div></div>';
                    $('.order_status .left dl').eq(intimate_info_l-1).find('dt').css('background','#43af80')
                }
                //成功执行
            }else if(res.ret==1){
                alert(res.msg);
            }
        });

        $('#back').click(function () {
            history.go(-1);
        });
    })
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
<script src="../js/weixin2.js"></script>
<body>
<!--// 导航条-->
<div style="width: 100%;height: 45px;background-color: #38a16d;position: fixed;z-index: 10000">
    <h1 class="nav-title" style="font-size: 18px;">订单状态</h1>
    <img src="../img/BackIcon.png" alt="返回" class="nav-backImg" id="back"/>
</div>
<div class="main" style="padding-top: 45px">
    <div class="order_status">
        <div class="left" id="status_l">

        </div>
        <div class="right" id="status_r">


        </div>
    </div>
</div>
</body>
</html>
